from likeshop.base.mybase import Tools


# 删除购物车
class delete_cart_model(Tools):
    # 定义登录路径
    path = "/page/cart/del"

    # 发送登录请求
    def delete_cart_action(self, sbid, db):
        mydata = {
            'cart_id': sbid
        }
        res = self.session.post(url=self.hosturl+self.path, data=mydata, headers=db)
        return res.json()


